package com.iwhalecloud.bss.kite.cucc.service.custview.userinfo.supplier;

import com.iwhalecloud.bss.kite.common.util.KiteMapUtils;
import com.iwhalecloud.bss.kite.cucc.common.constant.LocalKeyConsts;
import com.iwhalecloud.bss.kite.cucc.service.custview.userinfo.UserAttrSupplier;
import com.iwhalecloud.bss.kite.cucc.service.custview.userinfo.UserInfoHelper;
import org.springframework.stereotype.Service;

/**
 * @ClassName : FeeCycleStartDateSupplier
 * @Description : 缴费周期开始时间属性提供者
 * @Author : zhengchunlig
 * @Date : 2022/3/3 15:21
 */
@Service
@UserAttrSupplier(attrField = "USR0014")
public class FeeCycleStartDateSupplier extends AbstractUserAttrSupplier{
    @Override
    public String getValue() {
        String feeCycleStartDate = UserInfoHelper
            .getValueFromUserItemInfoMap(userInfoContext.getUserItemInfoMap(), LocalKeyConsts.PAYMENT_CYCLE_START_DATE);
        return feeCycleStartDate;
    }
}
